package com.qunar.tech.team12.notepad;

import com.qunar.tech.team12.notepad.notepad.Notepad;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

/**
 * Created by mzy on 14-7-21.
 */
public class Main {

    private static final Scanner scanner = new Scanner(System.in);
    private static final Logger LOG = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) throws IOException {
        Notepad notepad = new Notepad(new File("notepad.txt"));
        notepad.write("mzy", "abc", "aaa").sync();
        String content = notepad.read("mzy", "abc");
        LOG.info(content);
    }
}
